package lab02.test35;

public class Test35 {
    public static void main(String[] args) {
        Manager wang = new Manager();
        wang.name="wang";
        wang.sex="男";
        wang.salary=18000;

        Salesman li = new Salesman();
        li.name="li";
        li.sex = "男";
        li.salary=4000;
        li.num=200;

        Worker yan = new Worker();
        yan.name="yan";
        yan.sex="女";
        yan.days=30;
        yan.daySalary=2000;


        System.out.println(wang.toString());
        System.out.println(li.toString());
        System.out.println(yan.toString());
    }
}
